local jizhi = fk.CreateSkill {

  name = "joy_mou__jizhi",

  tags = { Skill.Compulsory, },

}



jizhi:addEffect(fk.CardUsing, {
  name = "joy_mou__jizhi",
  anim_type = "drawcard",
  frequency = Skill.Compulsory,
  events = {fk.CardUsing},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(jizhi.name) and data.card.type == Card.TypeTrick
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1,jizhi.name)
  end,
})

jizhi:addEffect("targetmod", {
  name = "#joy_mou__jizhi_targetmod",
  --jizhi,
  frequency = Skill.Compulsory,
  bypass_distances = function(self, player, skill, card)
    return player:hasSkill(jizhi.name) and card and card.type == Card.TypeTrick
  end,
})

return jizhi